<?php
/* @var $this BahanGalianController */
/* @var $model BahanGalian */
/* @var $form CActiveForm */
?>

<div class="form">

<?php 
    $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
        'id' => 'horizontalForm',
        'type' => 'horizontal',
        'enableAjaxValidation' => false,
    ));
?>

    <p class="note">Fields with <span class="required">*</span> are required.</p>
	<?php echo $form->errorSummary($model); ?>
    <div class="control-group ">
        <label class="control-label">Kode Bahan Galian</label>
        <div class="controls">
                <?php echo $form->textField($model, 'id_bahan_galian', array('size' => 10, 'maxlength' => 10)); ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label">Nama Bahan Galian</label>
        <div class="controls">
                <?php echo $form->textField($model, 'nama_bahan', array('size' => 75, 'maxlength' => 75)); ?>
        </div>
    </div>
    
    <div class="control-group ">
        <label class="control-label">Nilai Pasar</label>
        <div class="controls">
                <?php echo $form->textField($model, 'nilai_pasar', array('size' => 15, 'maxlength' => 15)); ?>
        </div>
    </div>
    
    <div class="control-group ">
        <label class="control-label">Tarif Galian</label>
        <div class="controls">
                <?php echo $form->textField($model, 'tarif_galian', array('size' => 15, 'maxlength' => 15)); ?>
        </div>
    </div>    
    
    <div class="control-group ">
        <label class="control-label">Keterangan</label>
        <div class="controls">
                <?php echo $form->textField($model, 'keterangan', array('size' => 75, 'maxlength' => 75)); ?>
        </div>
    </div>
    
    <?php
        $this->widget('bootstrap.widgets.TbButton', array(
                'buttonType' => 'submit',
                'type' => 'success',
				'icon' => 'save',
				'label' => 'Simpan',
            'htmlOptions'=>array('style'=>'margin-left:170px'),
         ));
    ?>

<?php $this->endWidget(); ?>

</div><!-- form -->